from cart.views import AddToCartView, CartPayView, CartListView, RemoveFromCartView
from django.urls import path

urlpatterns = [
    path('cart/', CartListView.as_view(), name='cart-list'),
    path('cart/pay/', CartPayView.as_view(), name='pay'),
    path('book/<int:book_id>/addtocart/',
         AddToCartView.as_view(), name='addtocart'),
    path('cart/<int:trade_id>/remove/',
         RemoveFromCartView.as_view(), name='cart-remove'),
]
